<template>
  <div class="goods-number-panel">
    <div class="panel-goods">
      <div class="goods-img">
        <img src="@/static/images/product/p3.jpg" alt="">
      </div>
      <div class="goods-info">
        <div class="info-name">
          <p>陶瓷Xx</p>
        </div>
        <div class="info-price">
          <span>￥19999.00</span>
        </div>
      </div>
    </div>
    <div class="panel-section">
      <div class="section-title">
        <span>数量</span>
      </div>
      <div class="section-content">
        <m-number :value="1" @change="change"></m-number>
      </div>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  export default {
    methods: {
      change(o) {
        this.$emit('change', o)
      }
    }
  }
</script>

<style lang="less" scoped>
  .goods-number-panel {
    min-height: 700px;
    padding: 0 27px;
    background: white;
    .panel-goods {
      display: flex;
      align-items: center;
      padding: 27px 0;
      .goods-img {
        flex-basis: 127px;
        height: 127px;
        img {
          height: 100%;
          width: 100%;
        }
      }
      .goods-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: 20px;
        .info-name {
          p {
            font-size: 28px;
          }
        }
        .info-price {
          span {
            font-size: 34px;
            font-weight: 600;
            color: #b6090b;
          }
        }
      }
    }
    .panel-section {
      .section-title {
        display: flex;
        align-items: center;
        height: 62px;
        span {
          font-size: 28px;
          color: #666;
        }
      }
      .section-content {
        padding: 20px 0;
      }
    }
  }
</style>
